home *** CD-ROM | disk | FTP | other *** search
/ Saar AMOK 2 / Saar AMOK II - Oktober 1994 (1994)(Kreativ Marketing)(DE)[!][I-7598].iso / disks / 651_700 / 660 / scr / readme < prev    next >
Text File  |  1993-12-02  |  2KB  |  46 lines

  1.    SCR is a Screen Color Requester for AGA Amigas.  SCR opens a requester
  2. containing palette controls that allow you to change, copy, swap, spread,
  3. and cycle the colors of any public screen.  AmigaDOS 3.0 is required.
  4.  
  5.    Pen colors can be modified using individual RGB sliders for any pen
  6. selected from the color palette.
  7.    Pen colors can be copied, swapped, spread, and cycled using the buttons
  8. provided, which all operate in the same manner.  Pick a starting pen from
  9. the palette, and then click the desired button (Copy, Swap, Spread, or
  10. Cycle).  Then pick the ending pen from the palette, and the function will
  11. operate between the starting and ending pens.  Change the speed of color
  12. cycling using the slider provided.
  13.    You can also save and load modified screen color maps by menu selection.
  14.  
  15.    You can incorporate this color requester in your own programs.  Link the
  16. Palette.obj file with your own program and "XREF ChangePalette."  Then 
  17. ChangePalette can be used as a subroutine to open the screen color
  18. requester on either a public screen or a screen of your own.  Pass the
  19. screen address to ChangePalette on the stack.  Passing a #$0 value will
  20. cause the requester to open on the public screen.  The code below shows how
  21. this is done for the SCR program in assembly language.
  22.  
  23. **************************************************************
  24. *  Screen Color Requester (SCR)
  25. **************************************************************
  26.  
  27.    XREF  ChangePalette
  28.  
  29. _main:
  30.    move.l   #0,-(sp)          ;In order to open on public screen
  31.    jsr      ChangePalette     ;Do the palette thing
  32.    add.l    #4,sp             ;Clean up stack
  33.  
  34. Close:
  35.    moveq    #0,d0
  36.    rts                        ;bye
  37.  
  38.    END
  39.  
  40. **************************************************************
  41.  
  42.    SCR and Palette.obj are public domain programs.  Please enjoy using
  43. them, and if you have any comments or questions, contact me via Email
  44. at RHorne@cup.portal.com.
  45.                                                   Richard Horne
  46.